import java.util.ArrayList;


public class TestHelper2 {
	
	public static void main(String[] args) {
		
		byte [][] t ={{Board.WALL,Board.WALL,Board.WALL,Board.WALL,Board.WALL,Board.WALL,Board.WALL,Board.WALL},
					{Board.WALL,Board.EMPTY,Board.EMPTY,Board.EMPTY,Board.WALL,Board.EMPTY,Board.EMPTY,Board.WALL},
					{Board.WALL,Board.EMPTY,Board.WALL,Board.GOAL,Board.EMPTY,Board.EMPTY,Board.GOAL,Board.WALL},
					{Board.WALL,Board.EMPTY,Board.EMPTY,Board.WALL,Board.EMPTY,Board.WALL,Board.EMPTY,Board.WALL},
					{Board.WALL,Board.EMPTY,Board.EMPTY,Board.EMPTY,Board.EMPTY,Board.GOAL,Board.EMPTY,Board.WALL},
					{Board.WALL,Board.WALL,Board.WALL,Board.WALL,Board.WALL,Board.WALL,Board.WALL,Board.WALL}};
		Board board = new Board(6, 8);
		for (int i=0; i<board.getNumRows();i++){
			for (int j=0;j<board.getNumColumns();j++){
				board.setData(i, j, t[i][j]);
			}
		}
		
		System.out.println(board.toString());
		
	//	ArrayList<Position> g = Helper2.findGoals(board);
		
//		System.out.println("goal find : " + g.getI() +" " + g.getJ());
		
		
		int [][] array = BoardRanker.distancesToAllTarget(board);
		for (int i = 0; i<board.getNumRows();i++){
			for (int j=0;j<board.getNumColumns();j++){
				System.out.print(array[i][j] +" ");
			}
			System.out.println();
		}
		
	}

}
